package com.itbaizhan.login.controller;

import com.itbaizhan.common.vo.LivegoodsResult;
import com.itbaizhan.login.service.LoginService;
import org.apache.dubbo.qos.command.impl.Live;
import org.bouncycastle.oer.its.ieee1609dot2.basetypes.LinkageValue;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {
    @Autowired
    private LoginService loginService;

    @PostMapping("/sendyzm")
    public LivegoodsResult sendyzm(String phone){
        return loginService.sendYZM(phone);
    }

    @PostMapping("/login")
    public LivegoodsResult login(String username,String password){
        return loginService.login(username,password);
    }

}
